package com.ruoyi.framework.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "qiniu")
public class QiNiuYunConfig {
    /*key*/
    private String AccessKey;
    /*value*/
    private String SecretKey;
    /*链接*/
    private String url;
    /*空间名*/
    private String bucket;
    /*  华东:0 华北:1 华南:2*/
    private String status;

    public String getAccessKey() {
        return AccessKey;
    }

    public void setAccessKey(String accessKey) {
        AccessKey = accessKey;
    }

    public String getSecretKey() {
        return SecretKey;
    }

    public void setSecretKey(String secretKey) {
        SecretKey = secretKey;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getBucket() {
        return bucket;
    }

    public void setBucket(String bucket) {
        this.bucket = bucket;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "QiNiuYunConfig{" +
                "AccessKey='" + AccessKey + '\'' +
                ", SecretKey='" + SecretKey + '\'' +
                ", url='" + url + '\'' +
                ", bucket='" + bucket + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
}
